﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AtomicTypes;
using NDimArrayNamespace;

namespace Memory_Access
{
    public class QCharArray : QLabValues.AtomicTypeArray<AtomicTypes.QChar>
    {
        public QCharArray(params int[] dimensionSize)
            : base(dimensionSize)
        {
        }
        public QCharArray(QChar[] data, params int[] dimensionSize)
            : base(data, dimensionSize)
        {
        }

        //Darko dodao
        public QCharArray(QCharArray qca)
            : base(qca.Data, qca.DimensionSize)
        {
        }
        
        public int[] ToIntArray()
        {
            // TODO: konvertovanje NDimArraya u niz intidzera (npr a11,a21,a31,a12,a22,a32,a13,a23,a33)
            return null;
        }

        public QCharArray GetSubArray(int[][] subNDimArrayCoordinates)
        {
            NDimArray<QChar> tempArray = base.GetSubNDimArray(subNDimArrayCoordinates);
            return new QCharArray(tempArray.Data, tempArray.DimensionSize);
        }

        public override QLabValues.IQLabValueType getEnumType()
        {
            return QLabValues.IQLabValueType.QCharArray;
        }
    }
}
